import java.util.Comparator;

public class Main {
    public static void main(String[] args) {

        MyStack myStack = new MyStack();
        myStack.push(2);
        myStack.push(3);
        myStack.push(4);
        myStack.push(5);

        for (int i = 0; i < myStack.elem.length; i++) {
            System.out.println(myStack.elem[i]);
        }
    }
}


/*
class PriorityQueue implements Comparator<Integer> {

    //小根堆，默认的
    @Override
    public int compare(Integer o1, Integer o2) {
        return o1.compareTo(o2);
        //o1和 o2互换，就是大根堆
    }



}*/
